package com.hfut.wxy.dao;

import com.hfut.wxy.common.parent.ParentDao;
import com.hfut.wxy.entity.mysql.WxyAddress;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WxyAddressDao extends ParentDao<WxyAddress,Integer> {

    List<WxyAddress> findAllByUserId(Integer userId);

    WxyAddress findByUserIdAndIsDefaultTrue(Integer userId);
}
